#!/usr/bin/env python3
# -*-coding:utf-8 -*-
# __author__=LuLu
from page.basePage import BasePage
from pagesLocators.indexLocators import IndexLoc as Loc


class Index(BasePage):

    # 获取首页地址
    def get_index_url(self):
        return self.get_url()

    # 获取左上角用户名
    def get_right_username(self):
        return self.get_element_value(Loc.top_right_user_name)

    # 获取中间用户名+欢迎语
    def get_center_username(self):
        return self.get_element_value(Loc.centre_user_name)
